<?php
class NewTaskVo extends SzAbstractMySqlVo
{

    private $userId;
    private $id;
    private $status;

    /**
     * Initialize NewTaskVo.
     *
     * @param $userId
     * @param $id
     * @param $status
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return NewTaskVo
     */
    public function __construct($userId, $id, $status, $isInsert = false) {
        $this->userId = $userId;
        $this->id = $id;
        $this->status = $status;

        $this->isInsert = $isInsert;
        $this->voClassName = 'NewTaskVo';
        $this->ormName = 'NewTask';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'id' => $this->getId(),
            'status' => $this->getStatus(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'id' => $this->getId(),
            'status' => $this->getStatus(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getId(),
            $this->getStatus(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getId()
    {
        return $this->id;
    }

    public function setId($val)
    {
        $this->saveColumnStatus(1, $this->id);
        $this->id = $val;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($val)
    {
        $this->saveColumnStatus(2, $this->status);
        $this->status = $val;
    }

}